//--------------------------------------------------------------------------------------
// File: Tutorial02.fx
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
uint4 clrColor;

struct VS_INPUT
{
    float3 pos : POSITION;
};

struct VS_OUT
{
    float4 Pos : SV_POSITION;
};

struct PS_OUT
{
	uint4 col : SV_Target0;
};
//--------------------------------------------------------------------------------------
// Vertex Shader
//--------------------------------------------------------------------------------------
VS_OUT VS( VS_INPUT vIn)
{
    VS_OUT vOut;
    vOut.Pos = float4(vIn.pos, 1);
    return vOut;
}

//--------------------------------------------------------------------------------------
// Pixel Shader
//--------------------------------------------------------------------------------------
PS_OUT PS( VS_OUT pIn )
{
	PS_OUT pOut;
	pOut.col = clrColor;
	return pOut;
}

technique10 UintClear
{
    pass P0
    {
        SetVertexShader( CompileShader( vs_4_0, VS() ) );
        SetGeometryShader( NULL );
        SetPixelShader( CompileShader( ps_4_0, PS() ) );
    }
}
